<template>
    <!-- #ifdef APP-NVUE -->
    <uni-cell :index="index" @getPage="getPage(index)">
        <slot />
    </uni-cell>
    <!-- #endif -->
    <!-- #ifndef APP-NVUE -->
    <xg-waterfall-item :index="index">
        <slot />
    </xg-waterfall-item>
    <!-- #endif -->
</template>

<script>
		import xgWaterfallItem from '@/otherComponents/other/xg-waterfall-item/xg-waterfall-item.vue';
    export default {
			
			components:{
				xgWaterfallItem
			},
			name: 'UniWaterfallItem',
			props: {
				index: {
					type: Number,
					default: 0
				}
			},
			methods:{
				getPage(index) {
					this.$emit('getPage', index);
				}
			}
    }
</script>